package com.kunchi.platform.service;

import com.kunchi.platform.model.data.CurrentData;
import com.kunchi.platform.model.data.HistoryData;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;

/**
 * Created by denniszhou on 2017/6/24.
 */
public interface DataService {
    List<CurrentData> getCurrentData(String deviceId) throws IOException;

    HashMap<String, List<HistoryData>> getHistoryData(
        String deviceId, Long startTimestamp, Long endTimestamp) throws IOException;

    List<HistoryData> getHistoryDataByDataItemId(
        String deviceId, String dataItemId, Long startTimestamp, Long endTimestamp) throws IOException;
}
